import request from '@/utils/request'

// 查询楼盘列表
export function listPremises(query) {
  return request({
    url: '/house/premises/list',
    method: 'get',
    params: query
  })
}

// 查询楼盘详细
export function getPremises(housesId) {
  return request({
    url: '/house/premises/' + housesId,
    method: 'get'
  })
}

// 新增楼盘
export function addPremises(data) {
  return request({
    url: '/house/premises',
    method: 'post',
    data: data
  })
}

// 修改楼盘
export function updatePremises(data) {
  return request({
    url: '/house/premises',
    method: 'put',
    data: data
  })
}

// 删除楼盘
export function delPremises(housesId) {
  return request({
    url: '/house/premises/' + housesId,
    method: 'delete'
  })
}
